<!DOCTYPE html>
<html ng-app="ionicApp">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, width=device-width">
	<meta name="format-detection" content="telephone=no"/>
    <title></title>

    <link href="lib/ionic/css/ionic.css" rel="stylesheet">
    <link href="css/style.css" rel="stylesheet">

    <!-- IF using Sass (run gulp sass first), then uncomment below and remove the CSS includes above
    <link href="css/ionic.app.css" rel="stylesheet">
    -->

    <!-- ionic/angularjs js -->
    <script src="lib/ionic/js/ionic.bundle.js"></script>

    <!-- cordova script (this will be a 404 during development) -->
    <script src="cordova.js"></script>
	<script src="js/plugins.js"></script>
    <!-- your app's js -->

    <script src="js/common.js"></script>
    <script src="js/app.js"></script>
    <script src="js/controllers.js"></script>

  </head>

  <body>


  <ion-nav-view>

  </ion-nav-view>

  <!--登录-->
  <script id="sign-in.html" type="text/ng-template">
	  <ion-nav-bar class="bar-green nav-title-slide-ios7">
		  <ion-nav-back-button class="button-icon">
		  </ion-nav-back-button>
	  </ion-nav-bar>
	  <ion-view title="登录" left-buttons="leftButtons" right-buttons="rightButtons">
		  <ion-content padding="true">
			  <div class="list">
				  <label class="item item-input">
					  <!--<span class="input-label">Username</span>-->
					  <input type="text" placeholder="用户名" value="13810000003" ng-model="user.phoneNumber">
				  </label>
				  <label class="item item-input">
					  <!--<span class="input-label">Password</span>-->
					  <input type="password" placeholder="密码" value="123456" ng-model="user.password">
				  </label>
			  </div>
			  <button class="button button-block button-green" ng-click="signIn(user)">
				  登 录
			  </button>
			  </div>
		  </ion-content>
	  </ion-view>
  </script>

	<!--忘记密码-->
  <script id="forgot-password.html" type="text/ng-template">
	  <ion-view title="忘记密码">
		  <ion-content padding="true">
			  <p>
				  Yeah this is just a demo showing how views can be shown without tabs, then you can navigate
				  to views within tabs. Additionally, only one set of tabs needs to be written for all of the different views that should go inside the tabs. (Compared to written the same tab links in the footer of every view that's in a tab.)
			  </p>
			  <p>
				  There's no username/password, just click
				  the Sign-In button back a the sign-in view.
			  </p>
			  <p>
				  Return to <a href="#/sign-in">Sign-In</a>.
			  </p>
		  </ion-content>
	  </ion-view>
  </script>

  <!--左侧菜单-->
  <script id="menu.html" type="text/ng-template">
	  <ion-side-menus class="menu-bg">
		  <ion-pane ion-side-menu-content>
			  <ion-nav-bar class="bar-green nav-title-slide-ios7">
				  <ion-nav-back-button class="button-clear"><i class="icon ion-ios7-arrow-back"></i></ion-nav-back-button>
			  </ion-nav-bar>
			  <ion-nav-view name="menuContent" animation="slide-left-right"></ion-nav-view>
		  </ion-pane>

		  <ion-side-menu side="left">
			  <ion-content class="has-header">
				  <div class="headPortrait">
					  <img ng-src="{{user_info.imgUrl}}" alt=""/>
				  </div>
				  <div class="headPortraitInfo">
						<span>{{user_info.name}}</span>
						<span>{{user_info.phoneNumber}}</span>
						<span>{{user_info.businessName}}</span>
				  </div>
				  <ion-list>
					  <ion-item nav-clear menu-close class="menu-border" ng-href='{{getHref()}}'>
						  首页
					  </ion-item>
					  <ion-item ng-class="{6:'', 7:'hidden', 8:'hidden'}[user_type]" nav-clear menu-close class="menu-border" href="#/app/my_set">
						  个人设置
					  </ion-item>
					  <ion-item nav-clear menu-close class="menu-border" href="#/app/feedback">
						  意见反馈
					  </ion-item>
					  <ion-item nav-clear menu-close class="menu-border" href="#/app/change_password">
						  修改密码
					  </ion-item>
					  <ion-item nav-clear menu-close class="menu-border" ng-click="logout()">
						  注销
					  </ion-item>
				  </ion-list>
			  </ion-content>
		  </ion-side-menu>
	  </ion-side-menus>
  </script>

  <script id="home.html" type="text/ng-template">
	  <ion-view title="灵通管家" left-buttons="leftButtons" right-buttons="rightButtons">
		  <ion-nav-buttons side="left">
			  <button menu-toggle="left" class="button button-icon icon ion-navicon"></button>
		  </ion-nav-buttons>
		  <ion-content class="has-header">
			  <ion-list>
				  <ion-item href="#/app/business_manage">
					  <img class="front-ico" ng-src="images/icon/merchant.png">
					  商户管理
				  </ion-item>
				  <ion-item href="#/app/preferential_list">
					  <img class="front-ico" ng-src="images/icon/customer_information.png">
					  优惠管理
				  </ion-item>
			  </ion-list>
		  </ion-content>
	  </ion-view>
  </script>

  <!--商户管理-->
  <script id="business_manage.html" type="text/ng-template">
	  <ion-view title="商户管理" >
		  <ion-content class="has-header">
			  <div class="tabs-list" ng-controller="BusinessTabsCtrl">
				  <ul>
					  <li ng-repeat="tab in business_tabs"
						  ng-class="{active:isActiveTab(tab.url)}"
						  ng-click="onClickTab(tab)">{{tab.title}}</li>
				  </ul>
				  <div class="mainView">
					  <div ng-include="currentTab"></div>
				  </div>
			  </div>

		  </ion-content>
	  </ion-view>
  </script>

<!--商户管理 tabcontent template-->
  <script id="all_business.html" type="text/ng-template">
	  <div id="all_business" title="所有商户">
		  <ion-list>
			  <ion-item ng-repeat="search_list in all_business" href="#/app/search_list/{{search_list.business_category_id}}">
				  {{search_list.name}}( {{search_list.count}} )
			  </ion-item>
		  </ion-list>
	  </div>
  </script>

  <script id="my_business.html" type="text/ng-template">
	  <div id="my_business" title="我的商户">
		  <ion-list>
			  <ion-item ng-repeat="search_list in my_business" href="#/app/search_list/{{search_list.business_category_id}}">
				  {{search_list.name}}( {{search_list.count}} )
			  </ion-item>
		  </ion-list>
	  </div>
  </script>
  <!--商户管理 tabcontent template end-->

  <!--搜索列表  -->
  <script id="search_list.html" type="text/ng-template">
	  <ion-view title="餐饮">
		  <ion-nav-buttons side="right">
			  <button class="button button-positive button-clear no-animation color-white right-button" ng-click="addMerchant()">
					  <div class="ion-plus" data-pack="default" data-tags="add, include, new, invite, +"></div>
			  </button>
		  </ion-nav-buttons>
		  <ion-content class="has-header">
			  <div class="bar bar-header item-input-inset">
				  <label class="item-input-wrapper">
					  <i class="icon ion-ios7-search placeholder-icon"></i>
					  <input type="search" placeholder="Search" ng-model="business.keyword">
				  </label>
				  <button class="button button-clear color-black" ng-click="searchList(business)">
					  搜索
				  </button>

			  </div>
			  <ion-list class="clear">
				  <ion-item ng-repeat="merchant_view in search_list" href="#/app/merchant_view/{{merchant_view.id}}">
					  {{merchant_view.name}}
				  </ion-item>
			  </ion-list>
		  </ion-content>
	  </ion-view>
  </script>

  <!--添加商户-->
  <script id="add_merchant.html" type="text/ng-template">
	  <ion-view title="添加商户">
		  <ion-content class="has-header">
			  <ion-list class="add-merchant">
				  <div class="item-input-inset">
					  <label class="item-input-wrapper item-input-white">
						  <input type="text" placeholder="请输入地址或进行位置校正" id="currentAddress" value="" disabled>
					  </label>
					  <button class="button button-clear color-green" ng-click="positionCorrection()">
						  位置校正
					  </button>
				  </div>

				  <label class="item item-input item-stacked-label">
					  <span class="input-label">添加商户名称</span>
					  <input type="text" placeholder="请输入商户名称" ng-model="opt.textValue" ng-keyup="listDisplay(opt)">
				  </label>
				  <label class="item-input item-stacked-label">
					  <span id="listDisplayTitle" class="input-label f12">附近2公里内的商户</span>
				  </label>
				  <div class="padding">
					  <ul class="merchant-point-list" ng-repeat="listDisplay in listDisplays"><!-- -->
							<li class="item"><span class="float-right">{{listDisplay.range.toFixed(2)*1000 + 'm'}}</span>{{listDisplay.name}}</li>
					  </ul>
					  <button class="button button-block button-green" ng-click="next(opt)">
						  下一步
					  </button>
				  </div>
			  </ion-list>

		  </ion-content>
	  </ion-view>
  </script>

  <!--添加商户 下一步-->
  <script id="add_merchant_next.html" type="text/ng-template">
	  <ion-view title="{{view_title}}"><!---->
		  <ion-content class="has-header">
			  <ion-list>
				  <ion-item class="item-input-inset">
					  <label class="item-input-wrapper item-input-white">
						  <input type="text" placeholder="请输入商户名称" ng-model="addInfo.seek_input">
					  </label>
					  <span class="text-right-icon" ng-click="delMerchantName(addInfo)"><img src="images/icon/del_green.png" alt=""/></span>
				  </ion-item>
				  <ion-item class="item-input-inset">
					  <label class="item-input-wrapper item-input-white">
						  <input id="currentAddressNext" type="text" placeholder="请输入地址" value="" ng-model="addInfo.merchantAddress" shopLatitude="{{addInfo.shopLatitude}}" shopLongitude="{{addInfo.shopLongitude}}">
					  </label>
					  <span class="text-right-icon" ng-click="getAddress()"><img src="images/icon/place.png" alt=""/></span>
				  </ion-item>
				  <ion-item class="item-input-inset">
					  <label class="item-input-wrapper item-input-white">
						  <input type="text" placeholder="请输入联系电话" value="" ng-model="addInfo.merchantPhone">
					  </label>
				  </ion-item>
				  <ion-item class="item-input-inset">
					  <label class="item-input-wrapper item-input-white">
						  <input type="text" placeholder="商户简介" value="" ng-model="addInfo.merchantIntro">
					  </label>
				  </ion-item>
				  <ion-item>
					  <span class="b">添加商户照片</span>
				  </ion-item>
				  <ion-item>
					  <p class="color-grey">点击添加门头照片 <i class="color-red">（必填）</i></p>
					  <div class="add-photo" id="add-photo-00"><img ng-click="addPhoto00($event.target)" class="add-btn" src="images/page_img/add_photo.png" alt=""/></div>
				  </ion-item>
				  <ion-item>
					  <p class="color-grey">点击添加店内照片</p>
					  <div class="add-photo" id="add-photo-01">
						  <img ng-click="addPhoto01($event.target)" class="add-btn" src="images/page_img/add_photo.png" alt=""/>

						  <!--<div class="glass_img"><img src="images/page_img/add_photo.png" alt=""/><p class="del_btn" ng-click="removeBtn()"></p></div>-->
					  </div>
				  </ion-item>
				  <ion-item>
					  <p class="color-grey">点击添加菜品照片</p>
					  <div class="add-photo" id="add-photo-02"><img ng-click="addPhoto02($event.target)" class="add-btn" src="images/page_img/add_photo.png" alt=""/></div>
				  </ion-item>
				  <ion-item>
					  <p class="color-grey">点击添加其他照片</p>
					  <div class="add-photo" id="add-photo-03"><img ng-click="addPhoto03($event.target)" class="add-btn" src="images/page_img/add_photo.png" alt=""/></div>
				  </ion-item>
			  </ion-list>
			  <br/>
				<!--<div>{{addInfo.mydata}}</div>
				<div>{{addInfo.addData}}</div>-->
			  <div class="padding-top">
				  <button class="button button-all button-stable" ng-click="goback()">取消</button>
				  <button class="button button-all button-balanced" ng-click="addMerchant(addInfo)">提交</button>
			  </div>
		  </ion-content>
	  </ion-view>
  </script>

  <!--添加商户成功-->

  <script id="add_merchant_success.html" type="text/ng-template">
	  <ion-view title="添加成功" hide-back-button="true">
		  <ion-content class="has-header">
				<div class="card">
					<h3 class="text-center">商户信息提交成功</h3>
					<p>请尽快联系店铺主人两个月内安装用户端，并且成为店铺主人的客户经理，否则此商户将被他人重新采集！</p>
				</div>
			  <div class="padding">
				  <button class="button button-block button-green" ng-click="addSuccess()">
					 确定
				  </button>
			  </div>
		  </ion-content>
	  </ion-view>
  </script>

  <!--商户详情-->
  <script id="merchant_view.html" type="text/ng-template">
	  <ion-view title="{{merchant.name}}">
		  <ion-nav-buttons side="right">
			  <button class="button button-positive button-clear no-animation color-white right-button" ng-class="{true:'', false:'hidden'}[bool]" ng-click="updateMerchant()">
				 编辑
			  </button>
		  </ion-nav-buttons>
		  <ion-content class="has-header">
			  <img class="full-image" ng-src="{{merchant.imgUrl}}"/>
			  <ion-list class="merchant-view">
				  <ion-item>
					  <img class="front-ico" ng-src="images/icon/phone.png">
					  {{merchant.phone}}
				  </ion-item>
				  <ion-item>
					  <img class="front-ico" ng-src="images/icon/place.png">
					  {{merchant.address}}
				  </ion-item>
				  <ion-item>
					  <img class="front-ico" ng-src="images/icon/intro.png">
					  {{merchant.intro}}
				  </ion-item>
				  <ion-item>
					  <img class="front-ico" ng-src="images/icon/people.png">
					  <span class="to_add_workman" ng-click="to_add_workman()">工作人员</span>
				  </ion-item>
			  </ion-list>

		  </ion-content>
	  </ion-view>
  </script>

  <!--添加工作人员-->
  <script id="add_workman.html" type="text/ng-template">
	  <ion-view title="添加工作人员">
		  <ion-content class="has-header">
			  <ion-list class="merchant-view">
				  <div class="list">
				  <ion-item class="item-input-inset item">
					  <label class="item-input-wrapper item-input-white left-none">
						  <input type="text" placeholder="姓名" ng-model="workmanInfo.name" class="ng-pristine ng-valid">
					  </label>
					  <span class="text-right-icon" ng-click="delName(workmanInfo)"><img src="images/icon/del_green.png" alt=""></span>
				  </ion-item>
				  <label class="item item-input item-select">
					  <div class="input-label">
						  性别：
					  </div>
					  <select ng-model="selectedGender" ng-options="g.infoGender for g in gender">
					  </select>
				  </label>
				  <label class="item item-input item-select">
					  <div class="input-label">
						  职务：
					  </div>
					  <select ng-model="selectedName" ng-options="m.name for m in duty">
					  </select>
				  </label>
				  <label class="item item-input">
					  <span class="input-label">联系电话：</span>
					  <input type="text" ng-model="workmanInfo.phoneNumber">
				  </label>
				  </div>
				  <div class="padding">
					  <button class="button button-block button-green" data-type={{workmanInfo.type}}" ng-click="addWorkman(workmanInfo)">
						  提 交
					  </button>
				  </div>
				  <div class="padding">
					  <button class="button button-all button-stable" ng-click="goback()">取消</button>
					  <button class="button button-all button-balanced" data-type="{{workmanInfo.type}}" ng-click="addWorkmanGoOn(workmanInfo)">提交并继续添加</button>
				  </div>
			  </ion-list>

		  </ion-content>
	  </ion-view>
  </script>
  <!--优惠管理-->
  <script id="preferential_list.html" type="text/ng-template">
	  <ion-view title="优惠管理">
		  <ion-content class="has-header">
			  <div class="tabs-list" ng-controller="PreferentialTabsCtrl">
				  <ul>
					  <li ng-repeat="tab in preferential_tabs"
						  ng-class="{active:isActiveTab(tab.url)}"
						  ng-click="onClickTab(tab)">{{tab.title}}
					  </li>
				  </ul>
				  <div class="mainView">
					  <div ng-include="currentTab"></div>
				  </div>
			  </div>
		  </ion-content>
	  </ion-view>
  </script>

  <!--优惠管理 tabcontent template-->
  <script id="audits_wait.html" type="text/ng-template">
	  <div id="audits_wait" title="待审核">
		  <ion-list class="clear">
			  <ion-item ng-repeat="preferential_audit_view in audits_wait" href="#/app/preferential_audit_view/{{preferential_audit_view.id}}">
				  <img class="front-img" ng-src="{{preferential_audit_view.imgMiniUrl}}" alt=""/>
				  {{preferential_audit_view.title}}
			  </ion-item>
		  </ion-list>
	  </div>
  </script>
  <script id="audits_agree.html" type="text/ng-template">
	  <div id="audits_agree" title="已同意">
		  <ion-list>
			  <ion-item ng-repeat="preferential_view in audits_agree" href="#/app/preferential_view/{{preferential_view.id}}">
				  <img class="front-img" ng-src="{{preferential_view.imgMiniUrl}}" alt=""/>
				  {{preferential_view.title}}
			  </ion-item>
		  </ion-list>
	  </div>
  </script>
  <script id="audits_reject.html" type="text/ng-template">
	  <div id="audits_reject" title="已拒绝">
		  <ion-list>
			  <ion-item ng-repeat="preferential_view in audits_reject" href="#/app/preferential_view/{{preferential_view.id}}">
				  <img class="front-img" ng-src="{{preferential_view.imgMiniUrl}}" alt=""/>
				  {{preferential_view.title}}
			  </ion-item>
		  </ion-list>
	  </div>
  </script>
  <!--优惠管理 tabcontent template end-->

  <!--待审核优惠详情-->
  <script id="preferential_audit_view.html" type="text/ng-template">
	  <ion-view title="{{preferential_view.title}}">
		  <ion-content class="has-header">
			  <img class="full-image" ng-src="{{preferential_view.imgUrl}}"/>
			  <ion-list class="merchant-view">
				  <ion-item>
					  标题:
					  {{preferential_view.businessName}}
				  </ion-item>
				  <ion-item>
					  优惠时间:
					  {{preferential_view.startTime}} -  {{preferential_view.endTime}}
				  </ion-item>
				  <ion-item>
					  优惠细则:
					  {{preferential_view.content}}
				  </ion-item>
			  </ion-list>
		  </ion-content>

		  <div class="no-padding bar bar-next bar-light">
			  <ion-list class="full-width">
				  <ion-item class="item-avatar" href="#/app/merchant_view/{{preferential_view.businessId}}">
					  <img class="front-img" ng-src="{{preferential_view.businessImgMiniUrl}}" alt=""/>
					  <h2>{{preferential_view.businessName}}</h2>
					  <p>店长  {{preferential_view.auditUserName}}</p>
				  </ion-item>
			  </ion-list>
		  </div>
		  <div class="no-padding bar bar-footer">
			  <button class="button button-all button-stable" ng-click="reject()">拒绝</button>
			  <button class="button button-all button-balanced" ng-click="agree()">同意</button>
		  </div>
	  </ion-view>
  </script>

  <!--已同意已拒绝优惠详情-->
  <script id="preferential_view.html" type="text/ng-template">
	  <ion-view title="{{preferential_view.title}}">
		  <ion-content class="has-header">
			  <img class="full-image" ng-src="{{preferential_view.imgUrl}}"/>
			  <ion-list class="merchant-view">
				  <ion-item>
					  标题:
					  {{preferential_view.businessName}}
				  </ion-item>
				  <ion-item>
					  优惠时间:
					  {{preferential_view.startTime}} -  {{preferential_view.endTime}}
				  </ion-item>
				  <ion-item>
					  优惠细则:
					  {{preferential_view.content}}
				  </ion-item>
				  <ion-item>
					  审核状态:
					  {{preferential_view.auditStatus}}
				  </ion-item>
			  </ion-list>
		  </ion-content>

		  <div class="no-padding bar bar-agree-next bar-light">
			  <ion-list class="full-width">
				  <ion-item class="item-avatar" href="#/app/merchant_view/{{preferential_view.businessId}}">
					  <img class="front-img" ng-src="{{preferential_view.businessImgMiniUrl}}" alt=""/>
					  <h2>{{preferential_view.businessName}}</h2>
					  <p>店长  {{preferential_view.auditUserName}}</p>
				  </ion-item>
			  </ion-list>
		  </div>
	  </ion-view>
  </script>


  <!--个人设置-->
  <script id="my_set.html" type="text/ng-template">
	  <ion-view title="个人设置">
		  <ion-nav-buttons side="left">
			  <button menu-toggle="left" class="button button-icon icon ion-navicon"></button>
		  </ion-nav-buttons>
		  <ion-content>
			  <div class="list">
				  <label class="item item-input">
					  <span class="input-label">昵称：</span>
					  <input type="text" ng-model="myData.nickname">
				  </label>
				  <label class="item item-input">
					  <span class="input-label"> 真实姓名：</span>
					  <input type="text" ng-model="myData.name">
				  </label>
				  <label class="item item-input">
					  <span class="input-label"> 手机号码：</span>
					  <input type="text" ng-model="myData.phone_number">
				  </label>
				  <label class="item-input">
					  <span class="input-label"> 个人简介：</span>
				  </label>
				  <div class="padding">
					  <textarea class="bg-gray padding" ng-model="myData.bio"></textarea>
				  </div>
			  </div>
			  <div class="padding">
				  <button class="button button-block button-green" ng-click="mySet(myData)">
					  提 交
				  </button>
			  </div>
		  </ion-content>
	  </ion-view>
  </script>

  <!--意见反馈-->
  <script id="feedback.html" type="text/ng-template">
	  <ion-view title="意见反馈">
		  <ion-nav-buttons side="left" id="dom">
			  <button menu-toggle="left" class="button button-icon icon ion-navicon"></button>
		  </ion-nav-buttons>
		  <ion-content padding="true">
			  <div><textarea class="bg-gray padding" ng-model="msg.con"></textarea></div>
			  <button class="button button-block button-green" ng-click="feedback(msg)">
				  提 交
			  </button>
		  </ion-content>
	  </ion-view>
  </script>

  <!--修改密码-->
  <script id="change_password.html" type="text/ng-template">
	  <ion-view title="修改密码">
		  <ion-nav-buttons side="left">
			  <button menu-toggle="left" class="button button-icon icon ion-navicon"></button>
		  </ion-nav-buttons>
		  <ion-content padding="true">
			  <div class="list">
				  <label class="item item-input">
					  <!--<span class="input-label">Username</span>-->
					  <input type="password" placeholder="原密码" value="" ng-model="password.oldPassword">
				  </label>
				  <label class="item item-input">
					  <!--<span class="input-label">Password</span>-->
					  <input type="password" placeholder="新密码" value="" ng-model="password.newPassword">
				  </label>
				  <label class="item item-input">
					  <!--<span class="input-label">Password</span>-->
					  <input type="password" placeholder="再输入一次" value="" ng-model="password.repeatNewPassword">
				  </label>
			  </div>

			  <button class="button button-block button-green" ng-click="changePassword(password)">
				  修 改
			  </button>

		  </ion-content>
	  </ion-view>
  </script>

  <!--物业首页-->
  <script id="property.html" type="text/ng-template">
	  <ion-view title="物业">
		  <ion-nav-buttons side="left">
			  <button menu-toggle="left" class="button button-icon icon ion-navicon"></button>
		  </ion-nav-buttons>
		  <ion-content class="has-header">
			  <ion-list>
				  <ion-item href="#/app/property_intro">
					  <img class="front-ico" ng-src="images/icon/introd.png">
					  物业简介
				  </ion-item>
				  <ion-item href="#/app/property_notice">
					  <img class="front-ico" ng-src="images/icon/announcement.png">
					  公告管理
				  </ion-item>
				  <ion-item href="#/app/property_news">
					  <img class="front-ico" ng-src="images/icon/message.png">
					  日常资讯管理
				  </ion-item>
			  </ion-list>
		  </ion-content>
	  </ion-view>
  </script>
  <!--居委会首页-->
  <script id="committee.html" type="text/ng-template">
	  <ion-view title="居委会">
		  <ion-nav-buttons side="left">
			  <button menu-toggle="left" class="button button-icon icon ion-navicon"></button>
		  </ion-nav-buttons>
		  <ion-content class="has-header">
			  <ion-list>
				  <ion-item href="#/app/property_intro">
					  <img class="front-ico" ng-src="images/icon/introd.png">
					  居委会简介
				  </ion-item>
				  <ion-item href="#/app/property_notice">
					  <img class="front-ico" ng-src="images/icon/announcement.png">
					  公告管理
				  </ion-item>
				  <ion-item href="#/app/property_news">
					  <img class="front-ico" ng-src="images/icon/message.png">
					  日常资讯管理
				  </ion-item>
			  </ion-list>
		  </ion-content>
	  </ion-view>
  </script>

  <!--物业居委会简介-->
  <script id="property_intro.html" type="text/ng-template">
	  <ion-view title="{{headTitle+'简介'}}">
		  <ion-nav-buttons side="right">
			  <button class="button button-positive button-clear no-animation color-white right-button" ng-click="property_edit()">
				  编辑
			  </button>
		  </ion-nav-buttons>
		  <ion-content class="has-header">
			  <ion-list>
				  <ion-item>
					  {{headTitle}}： {{property_intro.title}}
				  </ion-item>
				  <ion-item>
					  地址： {{property_intro.address}}
				  </ion-item>
				  <ion-item>
					  电话： {{property_intro.phoneNumber}}
				  </ion-item>
				  <div class="ion-intro">
					  简介： <br/>
					  {{property_intro.content}}
				  </div>
			  </ion-list>

		  </ion-content>
	  </ion-view>
  </script>
  <!--物业居委会简介编辑-->
  <script id="property_intro_edit.html" type="text/ng-template">
	  <ion-view title="{{headTitle+'简介'}}">
		  <ion-nav-buttons side="right">
			  <button class="button button-positive button-clear no-animation color-white right-button" ng-click="property_complete(property_intro)">
				  完成
			  </button>
		  </ion-nav-buttons>
		  <ion-content class="has-header">
			  <ion-list>
				  <label class="item item-input">
					  <span class="input-label">{{headTitle}}：</span>
					  <input type="text" ng-model="property_intro.title"/>
				  </label>
				  <label class="item item-input">
					  <span class="input-label"> 地址：</span>
					  <input type="text" ng-model="property_intro.address"/>
				  </label>
				  <label class="item item-input">
					  <span class="input-label"> 电话：</span>
					  <input type="text" ng-model="property_intro.phoneNumber"/>
				  </label>
				  <label class="item-input">
					  <span class="input-label"> 简介：</span>
				  </label>
				  <div class="padding">
					  <textarea class="bg-gray padding" ng-model="property_intro.content"></textarea>
				  </div>
			  </ion-list>
		  </ion-content>
	  </ion-view>
  </script>
  <!--物业，居委会公告管理-->
  <script id="property_notice.html" type="text/ng-template">
	  <ion-view title="公告管理">
		  <ion-nav-buttons side="right">
			  <button class="button button-positive button-clear animation color-white right-button" ng-click="notice_add()">
				  <span class="icon-add"></span>
			  </button>
		  </ion-nav-buttons>
		  <ion-content class="has-header">
			  <ion-list>
				  <ion-item ng-repeat="property_notice in property_notices" href="#/app/property_notice_view/{{property_notice.id}}">
				  <span class="float-right">{{property_notice.createTime}}</span> {{property_notice.title}}
				  </ion-item>
			  </ion-list>
		  </ion-content>
	  </ion-view>
  </script>

  <!--物业居委会发布公告-->
  <script id="property_notice_post.html" type="text/ng-template">
	  <ion-view title="发布新公告">
		  <ion-nav-buttons side="right">
			  <button class="button button-positive button-clear no-animation color-white right-button" ng-click="property_complete(titleLen)">
				  完成
			  </button>
		  </ion-nav-buttons>
		  <ion-content class="has-header has-footer">
			  <ion-list>
				  <div class="item item-input-inset">
					  <label class="item-input-wrapper bg-none">
						  <input class="word-num" ng-model="titleLen.title" ng-change="change(titleLen)" type="text" maxlength="20" placeholder="请输入公告标题"/>
					  </label>
						  {{titleLen.numLen+'/20'}}
				  </div>
				  <div class="ion-intro">
					  <textarea class="padding-left"  ng-model="titleLen.content" placeholder="请输入公告详情"></textarea>
				  </div>
			  </ion-list>
		  </ion-content>
	  </ion-view>
  </script>

  <!--物业居委会公告详情页-->
  <script id="property_notice_view.html" type="text/ng-template">
	  <ion-view title="公告详情">
		  <ion-nav-buttons side="right">
			  <button class="button button-positive button-clear no-animation color-white right-button" ng-click="notice_edit()">
				  编辑
			  </button>
		  </ion-nav-buttons>
		  <ion-content class="has-header has-footer">
			  <ion-list>
				  <ion-item class="text-center">
					  {{property_notice_view.title}}
				  </ion-item>
				  <div class="ion-intro">
					  {{property_notice_view.content}}
				  </div>
			  </ion-list>
		  </ion-content>
		  <div class="no-padding bar bar-footer">
			  <button class="button button-all-full button-stable" ng-click="noticeDelete()">删 除</button>
		  </div>
	  </ion-view>
  </script>

  <!--物业居委会编辑公告-->
  <script id="property_notice_edit.html" type="text/ng-template">
	  <ion-view title="编辑公告">
		  <ion-nav-buttons side="right">
			  <button class="button button-positive button-clear no-animation color-white right-button" ng-click="property_complete(titleLen)">
				  完成
			  </button>
		  </ion-nav-buttons>
		  <ion-content class="has-header has-footer">
			  <ion-list>
				  <div class="item item-input-inset">
					  <label class="item-input-wrapper bg-none">
						  <input class="word-num" ng-model="titleLen.title" type="text" maxlength="20" placeholder="请输入公告标题"/>
					  </label>
				  </div>
				  <div class="ion-intro">
					  <textarea class="padding-left"  ng-model="titleLen.content" placeholder="请输入公告详情"></textarea>
				  </div>
			  </ion-list>
		  </ion-content>
	  </ion-view>
  </script>

  <!--物业，居委会资讯管理-->
  <script id="property_news.html" type="text/ng-template">
	  <ion-view title="资讯管理">
		  <ion-nav-buttons side="right">
			  <button class="button button-positive button-clear animation color-white right-button" ng-click="news_add()">
				  <span class="icon-add"></span>
			  </button>
		  </ion-nav-buttons>
		  <ion-content class="has-header">
			  <ion-list>
				  <ion-item ng-repeat="property_new in property_news" href="#/app/property_new_view/{{property_new.id}}">
					  <span class="float-right">{{property_new.createTime}}</span>{{property_new.content}}
				  </ion-item>
			  </ion-list>
		  </ion-content>
	  </ion-view>
  </script>

  <!--物业，居委会资讯添加-->
  <script id="property_news_add.html" type="text/ng-template">
	  <ion-view title="添加资讯">
		  <ion-nav-buttons side="right">
			  <button class="button button-positive button-clear no-animation color-white right-button" ng-click="add_complete(titleLen)">
			 	 完成
			  </button>
		  </ion-nav-buttons>
		  <ion-content class="has-header">
			  <ion-list>
				  <div class="item item-input-inset">
					  <label class="item-input-wrapper bg-none">
						  <input class="word-num" ng-model="titleLen.title" ng-change="change(titleLen)" type="text" maxlength="20" placeholder="请输入资讯内容"/>
					  </label>
					  {{titleLen.numLen+'/20'}}
				  </div>
			  </ion-list>
		  </ion-content>
	  </ion-view>
  </script>
  <!--物业，居委会资讯编辑-->
  <script id="property_news_edit.html" type="text/ng-template">
	  <ion-view title="编辑资讯">
		  <ion-nav-buttons side="right">
			  <button class="button button-positive button-clear no-animation color-white right-button" ng-click="add_complete(titleLen)">
				  完成
			  </button>
		  </ion-nav-buttons>
		  <ion-content class="has-header">
			  <ion-list>
				  <div class="item item-input-inset">
						  <input class="word-num" ng-model="titleLen.content" type="text" maxlength="20" placeholder="请输入资讯内容"/>
				  </div>
			  </ion-list>
		  </ion-content>
	  </ion-view>
  </script>
  <!--物业居委会资讯详情页-->
  <script id="property_new_view.html" type="text/ng-template">
	  <ion-view title="资讯详情">
		  <ion-nav-buttons side="right">
			  <button class="button button-positive button-clear no-animation color-white right-button" ng-click="news_add(titleLen)">
				  编辑
			  </button>
		  </ion-nav-buttons>
		  <ion-content class="has-header has-footer">
			  <ion-list>
				  <div class="ion-intro">
					  {{property_new_view.content}}
				  </div>
			  </ion-list>
		  </ion-content>
		  <div class="no-padding bar bar-footer">
			  <button class="button button-all-full button-stable" ng-click="newDelete()">删 除</button>
		  </div>
	  </ion-view>
  </script>
  </body>
</html>
